package com.atcd.springcloud.service.Impl;


import com.atcd.springcloud.entities.Payment;
import com.atcd.springcloud.entities.ResponseResult;
import com.atcd.springcloud.service.PaymentService;

import org.springframework.stereotype.Component;



//服务降级fallback
@Component
public class PaymentFallbackService implements PaymentService
{
    @Override
    public ResponseResult<Payment> paymentSQL(Long id)
    {
        return new ResponseResult<>(44444,"服务降级返回,---PaymentFallbackService",new Payment(id,"errorSerial"));
    }
}
 
 
